package me.aip.mov.mapper;

import me.aip.mov.entity.Appversion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aip9105
 * @since 2022-02-05
 */
public interface AppversionMapper extends BaseMapper<Appversion> {

   @Select("select * from c_appversion where app_id = #{appId} and publish_time > " +
           "(select publish_time from c_appversion where app_id = #{appId} and version= #{version}) limit 1 ")
   Appversion checkUpdate(Appversion appversion);
}
